<?php
	include('config/config.php');
	include('includes/header.php');
	
	if(isset($_SESSION['username'])){
?>
      <div class="row">
<?php 
include('menu.php');
?>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
          <h1 class="page-header">Administración usuarios</h1>
          <div class="table-responsive">
            <table class="table table-striped table-condensed">
              <thead>
                <tr>
                  <th>#</th>
                  <th>Nombres</th>
                  <th>Identificación</th>
                  <th>correo</th>
                  <th>Teléfono</th>
                  <th>Dirección</th>
                  <th>Acción</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td>1</td>
                  <td>Carlos Gutierrez</td>
                  <td>1022333898</td>
                  <td>carlos_guti@hotmail.com</td>
                  <td>3213588398</td>
                  <td>Calle 123 # 4 D 6</td>
                  <td>
                      <a href="<?= BASE_URL ?>detail-user/5/"><button type="button" class="btn btn-xs btn-info">Modificar</button></a>
                      <button class="btn btn-xs btn-danger">Eliminar</button>
                  </td>
               </tr>
              </tbody>
            </table>
          </div>
          <a href="<?= BASE_URL ?>new-user/"><button type="submit" class="btn btn-default">Nuevo Usuario</button></a>
        </div>
      </div>
<?php 
		include('includes/footer.php');
    }
	else{
		echo "<script type='text/javascript'>
				alert('Acceso restringido, debe loguearse para acceder a este contenido.');
				window.location='login.php';
		</script>";
	}
?>

